package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcPhoneEvent;
import com.csun.cmny.provider.model.dto.phone.PhoneEventPageQuery;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcPhoneEventMapper extends Mapper<DmcPhoneEvent> {

    /**
     * query phone event list with page
     *
     * @param phoneEventPageQuery the phone event query page
     *
     * @return the list.
     */
    List<DmcPhoneEvent> queryEventListWithPage(PhoneEventPageQuery phoneEventPageQuery);

    /**
     * delete phone event by device id
     *
     * @param deviceId  device id
     *
     * @return  the int.
     */
    Integer deletePhoneEventByDeviceId(Long deviceId);
}